<!DOCTYPE html>
<html>
<head>
<?php $this->load->view('head'); ?>
</head>
<body>
<?php $this->load->view('header'); ?>
<div class="container-fluid main">
	<div class="row">
<?php $this->load->view('left'); ?>
		<div class="main-content col-md-10">
<?php $this->load->view('crumbs'); ?>
			<div class="panel panel-default panel-my">
				<div class="panel-heading">
					<span class="mr10">文档管理</span>
					<!--
					<a class="btn btn-success btn-xs" href="<?php echo site_url('admin/article/add'); ?>" title="添加"><i class="glyphicon glyphicon-plus"></i> 添加</a>
					-->
				</div>
				<div class="panel-body">
					<form class="form-inline J-ajax-form" action="<?php echo site_url('admin/article/index'); ?>" method="post" accept-charset="utf-8" role="form">
						<div class="table-responsive">
							<table class="table table-striped table-hover">
								<thead>
									<tr>
										<th class="text-center" width="60">#ID</th>
										<th>栏目名称</th>
									</tr>
								</thead>
								<tbody>
<?php if (!$cat_tree) { ?>
									<tr>
										<td colspan="2">啊哦！暂时还没有记录</td>
									</tr>
<?php } ?>
<?php
foreach ($cat_tree as $cat) {
	$plus_html = str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;', $cat['_depth']);
?>
									<tr>
										<td class="text-center"><?php echo $cat['id']; ?></td>
										<td>
											<?php echo $plus_html; ?>
											<div class="form-group">
												<a class="mr5" href="<?php echo site_url('admin/article/lists?category_id=' . $cat['id']); ?>" title="<?php echo $cat['title']; ?>"><?php echo $cat['title']; ?></a>
											</div>
										</td>
									</tr>
<?php
}
?>
								</tbody>
							</table>
						</div>
						<!--/.table-responsive -->
					</form>
				</div>
				<!--/.panel-body -->
			</div>
			<!--/.panel -->
		</div>
		<!--/.main-content -->
	</div>
	<!--/.row -->
</div>
<!--/.container-fluid -->
<?php $this->load->view('footer'); ?>
</body>
</html>